/**
 * 
 */
package com.common.distributed.sharding.spring.schema;

import java.io.Serializable;

/**
 * @author liubing
 * 分库分表表名
 */
public class TableSchema implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String tablename;//表名
	
	private String prefixname;//别名
	
	private int count;//数量
	
	private String tablefield;//字段名
	/**
	 * @return the tablename
	 */
	public String getTablename() {
		return tablename;
	}

	/**
	 * @param tablename the tablename to set
	 */
	public void setTablename(String tablename) {
		this.tablename = tablename;
	}

	/**
	 * @return the prefixname
	 */
	public String getPrefixname() {
		return prefixname;
	}

	/**
	 * @param prefixname the prefixname to set
	 */
	public void setPrefixname(String prefixname) {
		this.prefixname = prefixname;
	}

	/**
	 * @return the count
	 */
	public int getCount() {
		return count;
	}

	/**
	 * @param count the count to set
	 */
	public void setCount(int count) {
		this.count = count;
	}

	/**
	 * @return the tablefield
	 */
	public String getTablefield() {
		return tablefield;
	}

	/**
	 * @param tablefield the tablefield to set
	 */
	public void setTablefield(String tablefield) {
		this.tablefield = tablefield;
	}

	/**
	 * @param tablename
	 * @param prefixname
	 * @param count
	 * @param tablefield
	 */
	public TableSchema(String tablename, String prefixname, int count,
			String tablefield) {
		super();
		this.tablename = tablename;
		this.prefixname = prefixname;
		this.count = count;
		this.tablefield = tablefield;
	}

	/**
	 * 
	 */
	public TableSchema() {
		super();
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "TableSchema [tablename=" + tablename + ", prefixname="
				+ prefixname + ", count=" + count + ", tablefield="
				+ tablefield + "]";
	}

	
	
	
}
